import request from '@/utils/request'

// 获取新闻列表
export function getNewsList() {
  return request({
    url: '/wuye/news',
    method: 'get'
  })
}

// 添加新闻
export function createNews(params) {
  return request({
    url: '/wuye/news',
    method: 'post',
    data: params
  })
}

// 删除新闻
export function delNews(id) {
  return request({
    url: '/wuye/news/' + id,
    method: 'delete'
  })
}

